def f(x):
    return 21.888-(45.942-x)


# print(f(34.9885))
# print(f(35.9765))
# print(f(36.9645))
# print(f(38.0285))


# a = (40.5+39.1+39.6+44.7+48.8)
# b = (50.8+50.7+51.1+51.5+54.8+54.9+54.7)
# c = (51.7+52.7+52.5+53.9+53.9+53.9+55.6+55.6)

# print(a + b + c)



def a(tj_bj, ggl, kui):
    chu_bj = 61

    print("在亏损20%的情况下，杠杆资金为：")
    x = chu_bj*kui/ (ggl-kui)
    print(x)
    print("在亏损20%的情况下，需要维持担保比例需要的资金：")
    print(((x+chu_bj)*kui+tj_bj)/x)


a(0, 1.5, 0.7)